package net.imagine.backend.mockrmi.remote.protocol;

import java.io.Serializable;

/**
 * 服务端响应封装类
 * 
 * @author wuqh
 */
public class ResponseBean implements Serializable {
	private static final long serialVersionUID = -654914946597704900L;
	private String id;
	private Object returnValue;

	/**
	 * 获取请求id
	 * 
	 * @return id
	 */
	public String getId() {
		return id;
	}

	/**
	 * 设置请求id
	 * 
	 * @param id
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 返回结果
	 * 
	 * @return 返回结果
	 */
	public Object getReturnValue() {
		return returnValue;
	}

	/**
	 * 设置返回结果
	 * 
	 * @param returnValue
	 *            返回结果
	 */
	public void setReturnValue(Object returnValue) {
		this.returnValue = returnValue;
	}
	
	public String toString() {
		StringBuffer buffer = new StringBuffer();
		buffer.append("id:");
		buffer.append(id);
		buffer.append(" returnValue:");
		buffer.append(returnValue);
		return buffer.toString();
	}
}
